/*----------------------------------------------------------------
 * \file        ct_voip_msg.h
 * \author      lilian lilian@hujiang.com
 * \date        2014/08/08
 * \brief
 *      VOIP message (packet).
 *----------------------------------------------------------------*/
#ifndef CTVOIP_MSG_H_
#define CTVOIP_MSG_H_

#include "command.h"

class ctVOIPMsg {
public:
        ctVOIPMsg();
        ~ctVOIPMsg();

public:
        void            assign(const uint8_t* buf, DWORD len); 
        const uint8_t*	data() const { return data_; }
        DWORD           len() const { return len_; }

public:
        static const DWORD MAX_MSG_SIZE = 2048;
private:
        uint8_t data_[MAX_MSG_SIZE];
        DWORD   len_;
};

#endif //CTVOIP_MSG_H_
